package com.ruoyi.sys.personnel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 人员管理/访客管理/访客审核
 */
@Data
@TableName("tb_audit")
public class TbAudit {
    @TableId(value = "a_id", type = IdType.AUTO)
    private Integer aId;
    @TableField("a_request_code")
    private String aRequestCode;
    @TableField("u_id")
    private Integer uId;
    @TableField("vr_id")
    private Integer vrId;
    @TableField("a_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date aDate;
    @TableField("a_type")
    private Integer aType;
    @TableField("a_state")
    private Integer aState;
    @TableField("a_application_status")
    private String aApplicationStatus;

    private User user;
    private TbVisitingRecords tbvr;
    private TbOrganizationManagement tbom;
}
